package com.lgy.service;

import com.lgy.service.impl.UserClientHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "ribbon-consumer",fallback = UserClientHystrix.class)
public interface UserClient {
    @RequestMapping(method = RequestMethod.GET, value = "/getuserinfo")
    String getuserinfo();
}